#ifndef OEINPUTBOX_H
#define OEINPUTBOX_H

#include <QDialog>
#include <QLineEdit>


class QLabel;
class QPushButton;
class QLineEdit;
class OEInputBox : public QDialog
{
    Q_OBJECT
public:
    explicit OEInputBox(QWidget *parent = 0);

    void setEditEchoMode(QLineEdit::EchoMode _mode);
    void setEditLabel(const QString& _title);
    void setEditValidator(const QString& _regExp);
    void setEditPlaceholderText(const QString& _text);

protected:

    void keyPressEvent(QKeyEvent *event);

signals:
    void sigInputMsg(const QString&);

public slots:
private:
    QLabel* labInput_;
    QPushButton* btnConfirm_;
    QLineEdit* editInput_;
};

#endif // OEINPUTBOX_H
